//
//  AppError.h
//  suishouxiu
//
//  Created by dinghongyan on 15/6/11.
//  Copyright (c) 2015年 zhongyan. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSUInteger, AppErrorCode) {
    ERROR_JSON_FORMAT = 101,
    ERROR_ACCESS_TOKEN = 102,
    ERROR_AUTHOR = 201,
    ERROR_USER_NOT_MATCH_CREATOR = 202,
    ERROR_TEMPLATE_FIELD = 301,
    ERROR_TEMPLATE_NOT_FOUND = 302,
    ERROR_FUNC_NOT_FOUND = 401,
    ERROR_PROJECT_NOT_FOUND = 501,
    ERROR_PROJECT_CREATE_TITLE_OR_FUNCID = 502,
    ERROR_PAGE_NOT_FUNCID = 601,
    ERROR_PAGE_CREATE = 602,
    ERROR_PAGE_UPDATE = 603,
    ERROR_PAGE_BATCH_ID = 604,
    ERROR_ELEMENT_NOT_FUNCID = 701,
    ERROR_QINIU_TOKEN_REQUEST = 801,
    ERROR_STORE_MODIFY_FAILED = 40004,
    ERROR_STORE_ADD_FAILED = 40003,
    ERROR_OLD_PASSWORD_AUTHENTICATION_FAILED = 40007,
    USERNAME_NOT_MATCH_PASSWORD = 40001,
    ERROR_PARA_VERIFIY = 41000,
    APPEAL = 804,
};


static NSString * AppErrorDomain = @"com.zhongyan.interactionworks.apperrordomain";
@interface AppError : NSObject
+(NSString *)messageForErrorCode:(NSInteger)error_code;
@end
